//
//  HMCDKTextField.m
//  兑换码
//
//  Created by 李贺 on 2017/1/9.
//  Copyright © 2017年 李贺. All rights reserved.
//

#import "HMCDKTextField.h"

@implementation HMCDKTextField

- (CGRect)leftViewRectForBounds:(CGRect)bounds
{
    CGRect iconRect = [super leftViewRectForBounds:bounds];
    iconRect.origin.x += 15;
    return iconRect;
}
//UITextField 文字与输入框的距离
- (CGRect)textRectForBounds:(CGRect)bounds{
    
    return CGRectInset(bounds, 50, 0);
    
}

//控制文本的位置
- (CGRect)editingRectForBounds:(CGRect)bounds{
    
    return CGRectInset(bounds, 50, 0);
}
@end
